package com.realgodo.site.entity.site;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.realgodo.site.entity.IdEntity;


/**
 * 网站公告
 */
@Entity(name = "Info")
@Table(name = "info_table")
public class Info extends IdEntity {
	
	private static final long serialVersionUID = -5043308999446239130L;

	public static final int STATUS_PUB=1;
	public static final int STATUS_UN_PUB=0;
	
	private String title;
	
	private Date createDate = new Date();
	
	private Date pubDate;
	
	private int status = STATUS_UN_PUB;

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "create_date", insertable = true, updatable = true)
	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "pub_date", insertable = true, updatable = true)
	public Date getPubDate() {
		return pubDate;
	}

	public void setPubDate(Date pubDate) {
		this.pubDate = pubDate;
	}

	public int getStatus() {
		return status;
	}

	public void setStatus(int status) {
		this.status = status;
	}
	
	
	
	
	
}
